<?php 
	include_once 'thuvienham.php';
	include_once 'phonghoc_db.php';

	class phonghoc_bs 
	{
		//------------------Fields [6]------------------
			// #0
		private $MaPhong = "";
		public function SetMaPhong($MaPhong) { $this->MaPhong = $MaPhong; }
		public function GetMaPhong() { return $this->MaPhong; }
			// #1
		private $TenPhong = "";
		public function SetTenPhong($TenPhong) { $this->TenPhong = $TenPhong; }
		public function GetTenPhong() { return $this->TenPhong; }
			// #2
		private $SoLuongMay = -1;
		public function SetSoLuongMay($SoLuongMay) { $this->SoLuongMay = $SoLuongMay; }
		public function GetSoLuongMay() { return $this->SoLuongMay; }
			// #3
		private $SoMayHoatDong = -1;
		public function SetSoMayHoatDong($SoMayHoatDong) { $this->SoMayHoatDong = $SoMayHoatDong; }
		public function GetSoMayHoatDong() { return $this->SoMayHoatDong; }
			// #4
		private $MaTrangThai = -1;
		public function SetMaTrangThai($MaTrangThai) { $this->MaTrangThai = $MaTrangThai; }
		public function GetMaTrangThai() { return $this->MaTrangThai; }
			// #5
		private $PIN = "";
		public function SetPIN($PIN) { $this->PIN = $PIN; }
		public function GetPIN() { return $this->PIN; }

		//------------------Method------------------
		public function Them()
		{
			$data = new phonghoc_db();
			return $data->Them($this->MaPhong, $this->TenPhong, $this->SoLuongMay, $this->SoMayHoatDong, $this->MaTrangThai, $this->PIN);
		}

		public function Xoa()
		{
			$data = new phonghoc_db();
			return $data->Xoa($this->MaPhong);
		}

		public function CapNhat()
		{
			$data = new phonghoc_db();
			return $data->CapNhat($this->MaPhong, $this->TenPhong, $this->SoLuongMay, $this->SoMayHoatDong, $this->MaTrangThai, $this->PIN);
		}

		public function LayDanhSach()
		{
			$data = new phonghoc_db();
			return $data->LayDanhSach($this->MaPhong, $this->TenPhong, $this->SoLuongMay, $this->SoMayHoatDong, $this->MaTrangThai, $this->PIN);
		}

	}

